<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>${constants.getSystemName()}</title>
    <link rel="stylesheet" href="${ctxPath}/assets/common/libs/layui/css/layui.css?v=${constants.getReleaseVersion()}"/>
    <link rel="stylesheet" href="${ctxPath}/assets/common/module/admin.css?v=${constants.getReleaseVersion()}"/>
    <link rel="stylesheet" href="${ctxPath}/assets/expand/css/style.css?v=${constants.getReleaseVersion()}" media="all"/>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15" >
        <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div id="edenSpace" style="width: 100%;min-height:300px"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- js部分 -->
@/* 加入contextPath属性和session超时的配置 */
<script type="text/javascript">
    var Feng = {
        ctxPath: "${ctxPath}",
        version: '${constants.getReleaseVersion()}'
    };
</script>
<script type="text/javascript" src="${ctxPath}/assets/common/libs/layui/layui.js?v=${constants.getReleaseVersion()}"></script>
<script type="text/javascript" src="${ctxPath}/assets/common/js/common.js?v=${constants.getReleaseVersion()}"></script>
<script src="${ctxPath}/assets/common/libs/echarts/echarts.min.js?v=${constants.getReleaseVersion()}"></script>
<script src="${ctxPath}/assets/common/libs/echarts/echartsTheme.js?v=${constants.getReleaseVersion()}"></script>
<script>
    layui.use(['layer'], function () {
        const $ = layui.jquery;
        initEdenSpace();
        function initEdenSpace(){
            const edenSpace = echarts.init(document.getElementById('edenSpace'), myEchartsTheme);
            let edenSpaceData = ${jvm_memory_used_bytes};
            const option = {
                title: { text: 'Eden SpaceData', x: 'center' },
                tooltip: { trigger: 'axis' },
                xAxis: {
                    type: 'time'
                },
                yAxis: {
                    type: 'value',
                    scale: true
                },
                series: [{type : 'line', name : 'Eden SpaceData', data: edenSpaceData, showSymbol: true}]
            };
            edenSpace.setOption(option);
        }
    });
</script>
</body>
</html>